﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ordinaire.Commerce
{
    /// <summary>
    /// Defines list of vendor relation related extension functions.
    /// </summary>
    public interface IVendorRelation
    {
        /// <summary>
        /// Adds or updates vendor catalog.
        /// </summary>
        /// <param name="vendorId">the vendor id: person or organisation id</param>
        /// <param name="goodId">the good id</param>
        /// <param name="valuePerUnit">the value of good per unit</param>
        /// <param name="isOrganisation">an indicator whether vendor is an organisation</param>
        /// <returns>the reference id of the entry</returns>
        int AddOrUpdateGoodCatalog(int vendorId, int goodId, decimal valuePerUnit, bool isOrganisation = true);
    }
}
